package com.saudiapp.webservice;

import java.util.ArrayList;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

import android.content.Context;
import android.os.Handler;
import android.os.Message;

import com.saudidentalapp.datamodels.CECourse;
import com.saudidentalapp.datamodels.Committee;
import com.saudidentalapp.datamodels.Exhibiton;
import com.saudidentalapp.datamodels.Exhibitor;
import com.saudidentalapp.datamodels.GalleryItem;
import com.saudidentalapp.datamodels.Poster;
import com.saudidentalapp.datamodels.Program;
import com.saudidentalapp.datamodels.ProgramDay;
import com.saudidentalapp.datamodels.ProgramMinutes;
import com.saudidentalapp.datamodels.Speaker;
import com.saudidentalapp.datamodels.WelcomeMessage;

public class WebServiceManager 
{
	
	//Constants
	private static  String SOAP_ACTION = "http://mobiapp.marqetrix.com/GetAboutADSXML";	 
	private static  String OPERATION_NAME = "GetAboutADSXML";	 

	Context context;
	int REQUST_ID;
	//Utilities utilities;
	public WebServiceManager(Context context) 
	{
		this.context=context;
		//utilities=Utilities.getInstance(context);
	}
	WebServiceListener webServiceListener;
	public void setonWebServiceListener(WebServiceListener webServiceListener)
	{
		this.webServiceListener=webServiceListener;
	}
	
	
	//old web services.
	public void  getAboutDentalSociety()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetAboutADSXML";
		OPERATION_NAME = "GetAboutADSXML";	
		
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(j);
					        
					        SoapObject str3 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					        str3 = (SoapObject) str2.getProperty(j);	
					        desString=str3.getProperty("About_SDS").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase(""))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				}
				
			});
			thread.start();
		
		
	}
	
	public void getAroundTownInformation()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetAroundTownXML";	
			OPERATION_NAME="GetAroundTownXML";
			REQUST_ID=1;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(j);
					        
					        SoapObject str3 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					        str3 = (SoapObject) str2.getProperty(j);	
					        desString=str3.getProperty("Around_Town").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase("") && !desString.equalsIgnoreCase("anyType{}"))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
	}
	
	public void getProgramsInformation()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetProgramsXML";	
			OPERATION_NAME="GetProgramsXML";
			REQUST_ID=3;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;			
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					       if(str1.getPropertyCount()>0)
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;			       
					       	        
					        ArrayList<Program> programs=new ArrayList<Program>();
					        if(str2!=null)
					        {
					        	 for(int j=0;j<str2.getPropertyCount();j++)
					        	 {
					        		 str3 = (SoapObject) str2.getProperty(j);	
					        		 if(str3!=null)
								        {  		 
						        		 
						        		 Program program=new Program();
						        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setID(Integer.parseInt(str3.getProperty("ID").toString()));
						        		 else 
						        			 program.setID(0); 
						        		 
						        		 if(!str3.getProperty("Date").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("Date").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setDate(str3.getProperty("Date").toString());
						        		 else 
						        			 program.setDate(""); 
						        		 
						        		 if(!str3.getProperty("Start_Time").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("Start_Time").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setStartTime(str3.getProperty("Start_Time").toString());
						        		 else 
						        			 program.setStartTime(""); 
						        		 
						        		 if(!str3.getProperty("End_Time").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("End_Time").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setEndTime(str3.getProperty("End_Time").toString());
						        		 else 
						        			 program.setEndTime(""); 
						        		 
						        		 if(!str3.getProperty("Title").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("Title").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setTitle(str3.getProperty("Title").toString());
						        		 else 
						        			 program.setTitle(""); 
						        		 
						        		 if(!str3.getProperty("Description").toString().equalsIgnoreCase("" )&&
						        				 !str3.getProperty("Description").toString().equalsIgnoreCase("anyType{}"))
						        			 program.setDescription(str3.getProperty("Description").toString());
						        		 else 
						        			 program.setDescription(""); 
						        		 
						        		 programs.add(program);
						        		 program=null;
								        }
					        	 }
					        }				       
					        if(programs!=null)
					        {
					        	if(!programs.isEmpty())
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=programs;
					        	}
					        	else
							     {
							        responce.Result_Type=Constants.NoDataPresent;
							     }
					        }		       
					   }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
	}
	
	public void getExibitors()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetExhibitorsXML";	
			OPERATION_NAME="GetExhibitorsXML";
			REQUST_ID=3;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;			
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(j);
					        
					        SoapObject str3 = null;
					       			        
					        ArrayList<Exhibitor> exhibitors=new ArrayList<Exhibitor>();
					        if(str2!=null)
					        {
					        	 for(int j=0;j<str2.getPropertyCount();j++)
					        	 {
					        		 str3 = (SoapObject) str2.getProperty(j);	
					        		 if(str3!=null)
								        {
					        		 Exhibitor exhibitor=new Exhibitor();
					        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase("" )|| 
					        		     str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setID(Integer.parseInt(str3.getProperty("ID").toString()));
					        		 else 
					        			 exhibitor.setID(0); 
					        		 
					        		 if(!str3.getProperty("Name").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("Name").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setName(str3.getProperty("Name").toString());
					        		 else 
					        			 exhibitor.setName(""); 
					        		 
					        		 if(!str3.getProperty("Designation").toString().equalsIgnoreCase(" " )|| 
					        		     str3.getProperty("Designation").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setDesignation(str3.getProperty("Designation").toString());
					        		 else 
					        			 exhibitor.setDesignation(""); 
					        		 
					        		 if(!str3.getProperty("Description").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("Description").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setDescription(str3.getProperty("Designation").toString());
					        		 else 
					        			 exhibitor.setDescription(""); 
					        		 
					        		 if(!str3.getProperty("Email").toString().equalsIgnoreCase(" " )||
					        			 str3.getProperty("Email").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setEmail(str3.getProperty("Email").toString());
					        		 else 
					        			 exhibitor.setEmail(""); 
					        		 
					        		 if(!str3.getProperty("Website").toString().equalsIgnoreCase(" " )||
					        			 str3.getProperty("Website").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setWebsite(str3.getProperty("Website").toString());
					        		 else 
					        			 exhibitor.setWebsite(""); 
					        		 
					        		 if(!str3.getProperty("Contact_No").toString().equalsIgnoreCase(" " )|| 
					        		     str3.getProperty("Contact_No").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setContactNo(str3.getProperty("Contact_No").toString());
					        		 else 
					        			 exhibitor.setContactNo(""); 
					        		 
					        		 
					        		 if(!str3.getProperty("Facebook_URL").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("Facebook_URL").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setFacebookURL(str3.getProperty("Facebook_URL").toString());
					        		 else 
					        			 exhibitor.setFacebookURL(""); 
					        		 
					        		 
					        		 if(!str3.getProperty("Twitter_URL").toString().equalsIgnoreCase(" " )|| 
					        			str3.getProperty("Twitter_URL").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setTwitterURL(str3.getProperty("Twitter_URL").toString());
					        		 else 
					        			 exhibitor.setTwitterURL(""); 
					        		 
					        		 
					        		 if(!str3.getProperty("LinkedIn_URL").toString().equalsIgnoreCase(" " )||
					        			 str3.getProperty("LinkedIn_URL").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setLinkedInURL(str3.getProperty("LinkedIn_URL").toString());
					        		 else 
					        			 exhibitor.setLinkedInURL(""); 
					        		 
					        		 if(!str3.getProperty("Thumb_Image").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setThumbImage(str3.getProperty("Thumb_Image").toString());
					        		 else 
					        			 exhibitor.setThumbImage(""); 
					        		 
					        		 if(!str3.getProperty("Image").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("Image").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setImage(str3.getProperty("Image").toString());
					        		 else 
					        			 exhibitor.setImage(""); 
					        		 
					        		 if(!str3.getProperty("PDF_File").toString().equalsIgnoreCase(" " )|| 
					        			 str3.getProperty("PDF_File").toString().equalsIgnoreCase("anyType{}"))
					        			 exhibitor.setPdfFile(str3.getProperty("PDF_File").toString());
					        		 else 
					        			 exhibitor.setPdfFile(""); 			        		 
					        		 
					        		 exhibitors.add(exhibitor);
					        		 exhibitor=null;
								        }
					        	 }
					        }				       
					        if(exhibitors!=null)
					        {
					        	if(!exhibitors.isEmpty())
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=exhibitors;
					        	}
					        	else
						        {
						        	responce.Result_Type=Constants.NoDataPresent;
						        }
					        }
					        
					 }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
	}
	
	public void getPosters()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetPostersXML";	
			OPERATION_NAME="GetPostersXML";
			REQUST_ID=3;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;			
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        if(str1.getPropertyCount()>0)
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;
					       
					      
					        
					        ArrayList<Poster> Posters=new ArrayList<Poster>();
					        if(str2!=null)
					        {
					        	 for(int j=0;j<str2.getPropertyCount();j++)
					        	 {
					        		  str3 = (SoapObject) str2.getProperty(j);	
					        		  if(str3!=null)
								        {
					        		 Poster poster=new Poster();
					        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase(" " )|| 
					        				 str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
					        			 poster.setID(Integer.parseInt(str3.getProperty("ID").toString()));
					        		 else 
					        			 poster.setID(0); 
					        		 
					        		 if(!str3.getProperty("Title").toString().equalsIgnoreCase(" " )|| 
					        				 str3.getProperty("Title").toString().equalsIgnoreCase("anyType{}"))
					        			 poster.setTitle(str3.getProperty("Title").toString());
					        		 else 
					        			 poster.setTitle(""); 
					        		 
					        		 if(!str3.getProperty("Description").toString().equalsIgnoreCase(" " )|| 
					        				 str3.getProperty("Description").toString().equalsIgnoreCase("anyType{}"))
					        			 poster.setDescription(str3.getProperty("Description").toString());
					        		 else 
					        			 poster.setDescription(""); 
					        		 
					        		 if(!str3.getProperty("Thumb_Image").toString().equalsIgnoreCase(" " )||
					        				 str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("anyType{}"))
					        			 poster.setThumbImage(str3.getProperty("Thumb_Image").toString());
					        		 else 
					        			 poster.setThumbImage(""); 
					        		 
					        		 if(!str3.getProperty("Image").toString().equalsIgnoreCase(" " )||
					        				 str3.getProperty("Image").toString().equalsIgnoreCase("anyType{}"))
					        			 poster.setImage(str3.getProperty("Image").toString());
					        		 else 
					        			 poster.setImage(""); 		        		 
					        		 
					        		 Posters.add(poster);
					        		 poster=null;
								        }
					        	 }
					        }				       
					        if(Posters!=null)
					        {
					        	if(!Posters.isEmpty())
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=Posters;
					        	}
					        	else
							     {
							        responce.Result_Type=Constants.NoDataPresent;
							     }
					        }		       
					   }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
		
	}
	
	public void getContactUs()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetContactUsXML";
			OPERATION_NAME = "GetContactUsXML";	
			
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(j);
					        
					        SoapObject str3 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					        str3 = (SoapObject) str2.getProperty(j);	
					        desString=str3.getProperty("ContactUs").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase(" "))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				}
				
			});
			thread.start();
		
	}
	
	public void SetExhibitorRate(final int Id,final float fRating)
	{
		
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/SetExhibitorRateXML";
			OPERATION_NAME = "SetExhibitorRateXML";	
			
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
					 request.addProperty("nID", ""+Id);
				        request.addProperty("nRate",""+ fRating);	 
		                 
				        envelope.dotNet = true;
			            envelope.setOutputSoapObject(request);
			            envelope.encodingStyle = SoapSerializationEnvelope.ENC;         
			        
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        if(str1.getPropertyCount()>0);
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;
					        if(str2.getPropertyCount()>0);
					        str3 = (SoapObject) str2.getProperty(0);	
					       
					        desString=str3.getProperty("Column1").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase(""))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				
				}
				
			});
			thread.start();
		
	}
	
	public void setPosterRate(final int Id,final float fRating)
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/SetPosterRateXML";
			OPERATION_NAME = "SetPosterRateXML";	
			
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			   	 	request.addProperty("nID", ""+Id);
			        request.addProperty("nRate",""+ fRating);	 
	                 
			        envelope.dotNet = true;
		            envelope.setOutputSoapObject(request);
		            envelope.encodingStyle = SoapSerializationEnvelope.ENC; 
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);			       
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        if(str1.getPropertyCount()>0);
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;
					        if(str2.getPropertyCount()>0);
					        str3 = (SoapObject) str2.getProperty(0);	
					       
					        desString=str3.getProperty("Column1").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase(""))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				

				}
				
			});
			thread.start();
		
	}
	
	public void setProgramgeRate(final int Id,final float fRating)
	{
		
		SOAP_ACTION = "http://mobiapp.marqetrix.com/SetProgramRateXML";
		OPERATION_NAME = "SetProgramRateXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        request.addProperty("nID", Float.valueOf(""+Id));
		        request.addProperty("nRate", fRating);	        
		        
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0);
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;
				        if(str2.getPropertyCount()>0);
				        str3 = (SoapObject) str2.getProperty(0);	
				       
				        desString=str3.getProperty("Column1").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase(""))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=desString;
				        	}
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}

		});
		thread.start();
		
		
	}
	
	public void setSpeakerRate(final int Id,final float fRating)
	{
			SOAP_ACTION = "http://mobiapp.marqetrix.com/SetSpeakerRateXML";
			OPERATION_NAME = "SetSpeakerRateXML";	
			
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
					 request.addProperty("nID", ""+Id);
				        request.addProperty("nRate",""+ fRating);	 
		                 
				        envelope.dotNet = true;
			            envelope.setOutputSoapObject(request);
			            envelope.encodingStyle = SoapSerializationEnvelope.ENC;  
		                   
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);    
			       
			        ht.call(SOAP_ACTION, envelope);
			      
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        if(str1.getPropertyCount()>0);
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;
					        if(str2.getPropertyCount()>0);
					        str3 = (SoapObject) str2.getProperty(0);	
					       
					        desString=str3.getProperty("Column1").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase(""))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				}
				
			});
			thread.start();
		
	}
	
	
	
	//new web service...
	
	public void getAboutSaudi()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetAbout_SaudiXML";
		OPERATION_NAME = "GetAbout_SaudiXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				        		str3 = (SoapObject) str2.getProperty(0);	
				        desString=str3.getProperty("Around_Town").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase("")&& !desString.equalsIgnoreCase("anyType{}"))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=desString;
				        	}
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}
			
		});
		thread.start();
	}
	
	public void getAwards()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetAwardsXML";
		OPERATION_NAME = "GetAwardsXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				        		str3 = (SoapObject) str2.getProperty(0);	
				        desString=str3.getProperty("Awards").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase("") && !desString.equalsIgnoreCase("anyType{}"))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=desString;
				        	}
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}
			
		});
		thread.start();
	}
	
	public void getCEcourses()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetCECourseXML";	
		OPERATION_NAME="GetCECourseXML";
		REQUST_ID=5;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
			SoapObject response;			
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;			        
				        ArrayList<CECourse> cECourses=new ArrayList<CECourse>();
				        if(str2!=null)
				        {
				        	 for(int j=0;j<str2.getPropertyCount();j++)
				        	 {
				        		  str3 = (SoapObject) str2.getProperty(j);	
				        		  if(str3!=null)
							        {
				        			  CECourse ceCourse=new CECourse();
				        					        		 
				        		 if(!str3.getProperty("Name").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("Name").toString().equalsIgnoreCase("anyType{}"))
				        			 ceCourse.setName(str3.getProperty("Name").toString());
				        		 else 
				        			 ceCourse.setName(""); 
				        		 
				        		 if(!str3.getProperty("PDF_File").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("PDF_File").toString().equalsIgnoreCase("anyType{}"))
				        			 ceCourse.setPdfFile(str3.getProperty("PDF_File").toString());
				        		 else 
				        			 ceCourse.setPdfFile(""); 
				        			        		 
				        		 
				        		 cECourses.add(ceCourse);
				        		 ceCourse=null;
							        }
				        	 }
				        }				       
				        if(cECourses!=null)
				        {
				        	if(!cECourses.isEmpty())
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=cECourses;
				        	}
				        	else
						     {
						        responce.Result_Type=Constants.NoDataPresent;
						     }
				        }		       
				   }
		        }	       
				catch (Exception e) 
				{
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }	
			}
			
		});
		thread.start();
	
	}
	
	public void getContactUsInformation()
	{
		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetContactUsXML";
			OPERATION_NAME = "GetContactUsXML";	
			
			REQUST_ID=0;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
			
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(0);
					        
					        SoapObject str3 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					        		str3 = (SoapObject) str2.getProperty(0);	
					        desString=str3.getProperty("Contact_Us").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase("")&& !desString.equalsIgnoreCase("anyType{}"))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{					
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }		
				}
				
			});
			thread.start();
		
	}
	
	public void getExihibtion()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetExhibitionXML";
		OPERATION_NAME = "GetExhibitionXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0)
				        {
				        	 str2 = (SoapObject) str1.getProperty(0);
				        }
				        				        
				        SoapObject str3 = null;
				        if(str2.getPropertyCount()>0)
				        		str3 = (SoapObject) str2.getProperty(0);	
				        Exhibiton object=new Exhibiton();
				        
				        desString=str3.getProperty("Image").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase("")&& !desString.equalsIgnoreCase("anyType{}"))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		object.setImage(desString);
				        	}
				        	desString=null;
				        	desString=str3.getProperty("File").toString();	
				        	
				        	  	 if(!desString.equalsIgnoreCase("")&& !desString.equalsIgnoreCase("anyType{}"))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		object.setFile(desString);
					        		responce.ResponceData=object;
					        	}
				        	  	else
						        {
						        	responce.Result_Type=Constants.NoDataPresent;
						        }
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}
			
		});
		thread.start();
	}
	
	public void getFacebookUrl()
	{
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetFacebookURLXML";	
			OPERATION_NAME="GetFacebookURLXML";
			REQUST_ID=2;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;
				String desString;
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					         str2 = (SoapObject) str1.getProperty(j);
					        
					        SoapObject str3 = null;
					        for(int j=0;j<str1.getPropertyCount();j++)
					        str3 = (SoapObject) str2.getProperty(j);	
					        desString=str3.getProperty("Facebook_URL").toString();	
					        if(desString!=null)
					        {
					        	if(!desString.equalsIgnoreCase("") && !desString.equalsIgnoreCase("anyType{}"))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=desString;
					        	}
					        }
					        else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
					 }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
	}
	
	public void getGallaryInformation()
	{

		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetGalleryXML";
		OPERATION_NAME = "GetGalleryXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;			
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0)
				        {
				        	 str2 = (SoapObject) str1.getProperty(0);
				        }
				        				        
				        SoapObject str3 = null;
				        ArrayList<GalleryItem>galleryItems=new ArrayList<GalleryItem>();
				         if(str2!=null)
				        {
				        	 for(int j=0;j<str2.getPropertyCount();j++)
				        	 {
				        		 str3 = (SoapObject) str2.getProperty(j);	
				        		 if(str3!=null)
							        {
						        		GalleryItem galleryItem=new GalleryItem();
						        		 if(!str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("" )&& 
						        		     !str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("anyType{}"))
						        			 galleryItem.setThumbImage(str3.getProperty("Thumb_Image").toString());
						        		 else 
						        			 galleryItem.setThumbImage(""); 
						        		 
						        		 if(!str3.getProperty("Image").toString().equalsIgnoreCase("" )&&
						        			 !str3.getProperty("Image").toString().equalsIgnoreCase("anyType{}"))
						        			 galleryItem.setImage(str3.getProperty("Image").toString());
						        		 else 
						        			 galleryItem.setImage(""); 
						        		 
						        					        		 
						        		 galleryItems.add(galleryItem);
						        		 galleryItem=null;
							        }
				        	 }
				        }				       
				        if(galleryItems!=null)
				        {
				        	if(!galleryItems.isEmpty())
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=galleryItems;
				        	}
				        	else
					        {
					        	responce.Result_Type=Constants.NoDataPresent;
					        }
				        }
				        
				 }
				        
				 
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}
			
		});
		thread.start();
	}
	
	public void getOrgCommitee()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetOrgComXML";	
		OPERATION_NAME="GetOrgComXML";
		REQUST_ID=3;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
			SoapObject response;			
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;			        
				        ArrayList<Committee> Committees=new ArrayList<Committee>();
				        if(str2!=null)
				        {
				        	 for(int j=0;j<str2.getPropertyCount();j++)
				        	 {
				        		  str3 = (SoapObject) str2.getProperty(j);	
				        		  if(str3!=null)
							        {
				        		 Committee committee=new Committee();
				        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
				        			 committee.setID(Integer.parseInt(str3.getProperty("ID").toString()));
				        		 else 
				        			 committee.setID(0); 
				        		 
				        		 if(!str3.getProperty("Name").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("Name").toString().equalsIgnoreCase("anyType{}"))
				        			 committee.setName(str3.getProperty("Name").toString());
				        		 else 
				        			 committee.setName(""); 
				        		 
				        		 if(!str3.getProperty("Designation").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("Designation").toString().equalsIgnoreCase("anyType{}"))
				        			 committee.setDesignation(str3.getProperty("Designation").toString());
				        		 else 
				        			 committee.setDesignation(""); 
				        		 
				        		 if(!str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("anyType{}"))
				        			 committee.setThumbImage(str3.getProperty("Thumb_Image").toString());
				        		 else 
				        			 committee.setThumbImage(""); 
				        		 
				        		 if(!str3.getProperty("Image").toString().equalsIgnoreCase("" )&&
				        				 !str3.getProperty("Image").toString().equalsIgnoreCase("anyType{}"))
				        			 committee.setImage(str3.getProperty("Image").toString());
				        		 else 
				        			 committee.setImage(""); 		        		 
				        		 
				        		 Committees.add(committee);
				        		 committee=null;
							        }
				        	 }
				        }				       
				        if(Committees!=null)
				        {
				        	if(!Committees.isEmpty())
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=Committees;
				        	}
				        	else
						     {
						        responce.Result_Type=Constants.NoDataPresent;
						     }
				        }		       
				   }
		        }	       
				catch (Exception e) 
				{
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }	
			}
			
		});
		thread.start();
	
	}
	
	public void getSpeakers()
	{		
			SOAP_ACTION = "http://mobiapp.marqetrix.com/GetSpeakersXML";	
			OPERATION_NAME="GetSpeakersXML";
			REQUST_ID=3;
			final Responce responce=new Responce();
			Thread thread=new Thread(new Runnable() 
			{
				SoapObject response;			
				@Override
				public void run() 
				{
					try
					{
					SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
					SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
			        envelope.setOutputSoapObject(request);
			        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
			        ht.call(SOAP_ACTION, envelope);
			        envelope.getResponse();
			        response = (SoapObject)envelope.bodyIn;
			        if(response!=null)
			        {
			        	 SoapObject str = null;
					        for(int i=0;i<response.getPropertyCount();i++)
					              	str=(SoapObject) response.getProperty(i);     	
					       
					        
					        SoapObject str1 = (SoapObject) str.getProperty(1);
					        
					        SoapObject str2 = null;
					        if(str1.getPropertyCount()>0)
					        	 str2 = (SoapObject) str1.getProperty(0);		      
					        
					        SoapObject str3 = null;  
					        		 
					        
					        ArrayList<Speaker> Speakers=new ArrayList<Speaker>();
					        if(str2!=null)
					        {
					        	 for(int j=0;j<str2.getPropertyCount();j++)
					        	 {
					        		 str3 = (SoapObject) str2.getProperty(j);	
					        		 if(str3!=null)
								        {
						        		 Speaker speaker=new Speaker();
						        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase(" " )&& 
						        		     !str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setID(Integer.parseInt(str3.getProperty("ID").toString()));
						        		 else 
						        			 speaker.setID(0); 
						        		 
						        		 if(!str3.getProperty("Name").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("Name").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setName(str3.getProperty("Name").toString());
						        		 else 
						        			 speaker.setName(""); 
						        		 
						        		 if(!str3.getProperty("Location").toString().equalsIgnoreCase(" " )&&
						        		     !str3.getProperty("Location").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setLocation(str3.getProperty("Location").toString());
						        		 else 
						        			 speaker.setLocation(""); 
						        		 
						        		 if(!str3.getProperty("Description").toString().equalsIgnoreCase(" " )&& 
						        			 !str3.getProperty("Description").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setDescription(str3.getProperty("Description").toString());
						        		 else 
						        			 speaker.setDescription(""); 
						        		 
						        		 if(!str3.getProperty("Email").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("Email").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setEmail(str3.getProperty("Email").toString());
						        		 else 
						        			 speaker.setEmail(""); 
						        		 
						        		 if(!str3.getProperty("Website").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("Website").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setWebsite(str3.getProperty("Website").toString());
						        		 else 
						        			 speaker.setWebsite(""); 
						        		 
						        		 if(!str3.getProperty("Contact_No").toString().equalsIgnoreCase(" " )&&
						        		     !str3.getProperty("Contact_No").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setContactNo(str3.getProperty("Contact_No").toString());
						        		 else 
						        			 speaker.setContactNo(""); 
						        		 
						        		 
						        		 if(!str3.getProperty("Facebook_URL").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("Facebook_URL").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setFacebookURL(str3.getProperty("Facebook_URL").toString());
						        		 else 
						        			 speaker.setFacebookURL(""); 
						        		 
						        		 
						        		 if(!str3.getProperty("Twitter_URL").toString().equalsIgnoreCase(" " )&& 
						        			!str3.getProperty("Twitter_URL").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setTwitterURL(str3.getProperty("Twitter_URL").toString());
						        		 else 
						        			 speaker.setTwitterURL(""); 
						        		 
						        		 
						        		 if(!str3.getProperty("LinkedIn_URL").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("LinkedIn_URL").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setLinkedInURL(str3.getProperty("LinkedIn_URL").toString());
						        		 else 
						        			 speaker.setLinkedInURL(""); 
						        		 
						        		 if(!str3.getProperty("Thumb_Image").toString().equalsIgnoreCase(" " )&& 
						        			 !str3.getProperty("Thumb_Image").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setThumbImage(str3.getProperty("Thumb_Image").toString());
						        		 else 
						        			 speaker.setThumbImage(""); 
						        		 
						        		 if(!str3.getProperty("Image").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("Image").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setImage(str3.getProperty("Image").toString());
						        		 else 
						        			 speaker.setImage(""); 
						        		 
						        		 if(!str3.getProperty("PDF_File").toString().equalsIgnoreCase(" " )&&
						        			 !str3.getProperty("PDF_File").toString().equalsIgnoreCase("anyType{}"))
						        			 speaker.setPdfFile(str3.getProperty("PDF_File").toString());
						        		 else 
						        			 speaker.setPdfFile(""); 			        		 
						        		 
						        		 Speakers.add(speaker);
						        		 	speaker=null;
								   }
					        	 
					        }
					        }
					        if(Speakers!=null)
					        {
					        	if(!Speakers.isEmpty())
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		responce.ResponceData=Speakers;
					        	}
					        	else
						        {
						        	responce.Result_Type=Constants.NoDataPresent;
						        }
					        }
					     }
			        }	       
					catch (Exception e) 
					{
						responce.Result_Type=Constants.Error;
					}
					finally
			        {
			        	Message message=new Message();
			        	message.what=REQUST_ID;
			        	message.arg1=responce.Result_Type;
			        	message.obj=responce;	        	
			        	handler.sendMessage(message);
			        }	
				}
				
			});
			thread.start();
		
	}
	
	public void getTwitterUrl()
	{
		
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetTwitterURLXML";	
		OPERATION_NAME="GetTwitterURLXML";
		REQUST_ID=3;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				         str2 = (SoapObject) str1.getProperty(j);
				        
				        SoapObject str3 = null;
				        for(int j=0;j<str1.getPropertyCount();j++)
				        str3 = (SoapObject) str2.getProperty(j);	
				        desString=str3.getProperty("Twitter_URL").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase("")||!desString.equalsIgnoreCase("anyType{}"))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=desString;
				        	}
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }	
			}
			
		});
		thread.start();
		
	}
	
	public void getWelcomeMessage()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetWelcomeXML";
		OPERATION_NAME = "GetWelcomeXML";	
		
		REQUST_ID=0;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
		
			SoapObject response;
			String desString;
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				        if(str1.getPropertyCount()>0)
				        {
				        	 str2 = (SoapObject) str1.getProperty(0);
				        }
				        				        
				        SoapObject str3 = null;
				        if(str2.getPropertyCount()>0)
				        		str3 = (SoapObject) str2.getProperty(0);	
				        WelcomeMessage welcomeMessage=new WelcomeMessage();
				        
				        desString=str3.getProperty("Welcome").toString();	
				        if(desString!=null)
				        {
				        	if(!desString.equalsIgnoreCase(""))
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		welcomeMessage.setMessagae(desString);
				        	}
				        	desString=null;
				        	desString=str3.getProperty("Image").toString();	
				        	
				        	  	 if(!desString.equalsIgnoreCase(""))
					        	{
					        		responce.Result_Type=Constants.DataPresent;
					        		welcomeMessage.setImage(desString);
					        		responce.ResponceData=welcomeMessage;
					        	}
				        	  	else
						        {
						        	responce.Result_Type=Constants.NoDataPresent;
						        }
				        }
				        else
				        {
				        	responce.Result_Type=Constants.NoDataPresent;
				        }
				 }
		        }	       
				catch (Exception e) 
				{					
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }		
			}
			
		});
		thread.start();
	}

	public void getProgramDays()
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetProgDaysXML";	
		OPERATION_NAME="GetProgDaysXML";
		REQUST_ID=3;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
			SoapObject response;			
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		        envelope.setOutputSoapObject(request);
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				       if(str1.getPropertyCount()>0)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;			       
				       	        
				        ArrayList<ProgramDay> programs=new ArrayList<ProgramDay>();
				        if(str2!=null)
				        {
				        	 for(int j=0;j<str2.getPropertyCount();j++)
				        	 {
				        		 str3 = (SoapObject) str2.getProperty(j);	
				        		 if(str3!=null)
							        {  		 
					        		 
					        		 ProgramDay programDay=new ProgramDay();
					        		 if(!str3.getProperty("id").toString().equalsIgnoreCase("" )&&
					        				 !str3.getProperty("id").toString().equalsIgnoreCase("anyType{}"))
					        			 programDay.setID(Integer.parseInt(str3.getProperty("id").toString()));
					        		 else 
					        			 programDay.setID(0); 
					        		 
					        		 if(!str3.getProperty("Title").toString().equalsIgnoreCase("" )&&
					        				 !str3.getProperty("Title").toString().equalsIgnoreCase("anyType{}"))
					        			 programDay.setTitle(str3.getProperty("Title").toString());
					        		 else 
					        			 programDay.setTitle(""); 
					        		 
					        		 if(!str3.getProperty("Date").toString().equalsIgnoreCase("" )&&
					        				 !str3.getProperty("Date").toString().equalsIgnoreCase("anyType{}"))
					        			 programDay.setDate(str3.getProperty("Date").toString());
					        		 else 
					        			 programDay.setDate(""); 
					        		 
					        						        		 
					        		 programs.add(programDay);
					        		 programDay=null;
							        }
				        	 }
				        }				       
				        if(programs!=null)
				        {
				        	if(!programs.isEmpty())
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=programs;
				        	}
				        	else
						     {
						        responce.Result_Type=Constants.NoDataPresent;
						     }
				        }		       
				   }
		        }	       
				catch (Exception e) 
				{
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }	
			}
			
		});
		thread.start();
	
	}
	
	public void getMinutes(final Object DayID)
	{
		SOAP_ACTION = "http://mobiapp.marqetrix.com/GetMinutesXML";	
		OPERATION_NAME="GetMinutesXML";
		REQUST_ID=4;
		final Responce responce=new Responce();
		Thread thread=new Thread(new Runnable() 
		{
			SoapObject response;			
			@Override
			public void run() 
			{
				try
				{
				SoapObject request=new SoapObject(Constants.strNAMESPACE, OPERATION_NAME);
				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
				request.addProperty("DayID", ""+DayID.toString());
		             
		        envelope.dotNet = true;
	            envelope.setOutputSoapObject(request);
	            envelope.encodingStyle = SoapSerializationEnvelope.ENC;  
      
		        HttpTransportSE ht = new HttpTransportSE(Constants.strWEB_SERVICE_URL);
		        ht.call(SOAP_ACTION, envelope);
		        response = (SoapObject)envelope.bodyIn;
		        if(response!=null)
		        {
		        	 SoapObject str = null;
				        for(int i=0;i<response.getPropertyCount();i++)
				              	str=(SoapObject) response.getProperty(i);     	
				       
				        
				        SoapObject str1 = (SoapObject) str.getProperty(1);
				        
				        SoapObject str2 = null;
				       if(str1.getPropertyCount()>0)
				         str2 = (SoapObject) str1.getProperty(0);
				        
				        SoapObject str3 = null;			       
				       	        
				        ArrayList<ProgramMinutes> programs=new ArrayList<ProgramMinutes>();
				        if(str2!=null)
				        {
				        	 for(int j=0;j<str2.getPropertyCount();j++)
				        	 {
				        		 str3 = (SoapObject) str2.getProperty(j);	
				        		 if(str3!=null)
							        {  		 
					        		 
				        			 ProgramMinutes programMinutes=new ProgramMinutes();
					        		 if(!str3.getProperty("ID").toString().equalsIgnoreCase("" )&& 
					        				 !str3.getProperty("ID").toString().equalsIgnoreCase("anyType{}"))
					        			 programMinutes.setID(Integer.parseInt(str3.getProperty("ID").toString()));
					        		 else 
					        			 programMinutes.setID(0); 
					        		 
					        		 if(!str3.getProperty("order").toString().equalsIgnoreCase("" )&&
					        				 !str3.getProperty("order").toString().equalsIgnoreCase("anyType{}"))
					        			 programMinutes.setOrder(str3.getProperty("order").toString());
					        		 else 
					        			 programMinutes.setOrder(""); 
					        		 
					        		 if(!str3.getProperty("Start_Time").toString().equalsIgnoreCase("")&&
					        				 !str3.getProperty("Start_Time").toString().equalsIgnoreCase("anyType{}"))
					        			 programMinutes.setStartTime(str3.getProperty("Start_Time").toString());
					        		 else 
					        			 programMinutes.setStartTime(""); 
					        		 
					        		 if(!str3.getProperty("End_Time").toString().equalsIgnoreCase("" )&&
					        				 !str3.getProperty("End_Time").toString().equalsIgnoreCase("anyType{}"))
					        			 programMinutes.setEndTime(str3.getProperty("End_Time").toString());
					        		 else 
					        			 programMinutes.setEndTime(""); 					        		 
					        		
					        		 
					        		 if(!str3.getProperty("Description").toString().equalsIgnoreCase("" )&& 
					        				 !str3.getProperty("Description").toString().equalsIgnoreCase("anyType{}"))
					        			 programMinutes.setDescription(str3.getProperty("Description").toString());
					        		 else 
					        			 programMinutes.setDescription(""); 
					        		 
					        		 programs.add(programMinutes);
					        		 programMinutes=null;
							        }
				        	 }
				        }				       
				        if(programs!=null)
				        {
				        	if(!programs.isEmpty())
				        	{
				        		responce.Result_Type=Constants.DataPresent;
				        		responce.ResponceData=programs;
				        	}
				        	else
						     {
						        responce.Result_Type=Constants.NoDataPresent;
						     }
				        }		       
				   }
		        }	       
				catch (Exception e) 
				{
					responce.Result_Type=Constants.Error;
				}
				finally
		        {
		        	Message message=new Message();
		        	message.what=REQUST_ID;
		        	message.arg1=responce.Result_Type;
		        	message.obj=responce;	        	
		        	handler.sendMessage(message);
		        }	
			}
			
		});
		thread.start();
	
}

	public void getMinutesChildXML()
	{
		
	}
	
	
	final Handler handler=new Handler()
	{
		@Override
		public void handleMessage(Message msg) 
		{
			if(msg.arg1==Constants.DataPresent||msg.arg1==Constants.NoDataPresent)
				webServiceListener.onProcesCompleted(REQUST_ID, msg.obj);
			else if(msg.arg1==Constants.Error)
				webServiceListener.onErrorOccured(REQUST_ID);

		}
	};
	
	
	public interface WebServiceListener
	{
		public  abstract void onProcesCompleted(int requestId,Object Data);
		public  abstract void onErrorOccured(int requestId);
		
	}
	
	 
	     
}
